Skip to content

MWPW-190616: UI follow-up for grouped variation translation#740

Open
mirafedas wants to merge 43 commits into
mainfrom
mwpw-190616
Open

MWPW-190616: UI follow-up for grouped variation translation#740
mirafedas wants to merge 43 commits into
mainfrom
mwpw-190616

Conversation

@mirafedas
Copy link
Copy Markdown
Contributor

@mirafedas mirafedas commented Apr 3, 2026

Resolves https://jira.corp.adobe.com/browse/MWPW-190616

AC 1:

  1. Fixed dropdown chevron direction
  2. Removed grey connector lines
  3. Enabled checking the checkbox by row click
  4. Grouped variations now show the offer ID. If the offer ID is not set on the variation, the parent offer ID is displayed.
    These changes are covered with unit and Nala tests.

AC 2: variations render properly, so no changes made.

QA Checklist: https://wiki.corp.adobe.com/display/adobedotcom/M@S+Engineering+QA+Use+Cases

Please do the steps below before submitting your PR for a code review or QA

  • C1. Cover code with Unit Tests
  • C2. Add a Nala test (double check with #fishbags if nala test is needed)
  • C3. Verify all Checks are green (unit tests, nala tests)
  • C4. PR description contains working Test Page link where the feature can be tested
  • C5: you are ready to do a demo from Test Page in PR (bonus: write a working demo script that you'll use on Thursday, you can eventually put in your PR)
  • C.6 read your Jira one more time to validate that you've addressed all AC's and nothing is missing

🧪 Nala E2E Tests

Nala tests run automatically when you open this PR.

To run Nala tests again:

  1. Add the run nala label to this PR (in the right sidebar)
  2. Tests will run automatically on the current commit
  3. Any future commits will also trigger tests as long as the label remains

To stop automatic Nala tests:

  • Remove the run nala label

Note: Tests only run on commits if the run nala label is present. Add the label whenever you need tests to run on new changes.

Test URLs:

@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented Apr 3, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 94.66667% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.96%. Comparing base (cd61e97) to head (6013944).

Files with missing lines Patch % Lines
studio/src/common/utils/items-loader.js 91.66% 8 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #740      +/-   ##
==========================================
- Coverage   87.99%   87.96%   -0.04%     
==========================================
  Files         221      221              
  Lines       65293    65307      +14     
==========================================
- Hits        57457    57448       -9     
- Misses       7836     7859      +23     
Files with missing lines Coverage Δ
...rc/common/components/mas-select-items-table.css.js 100.00% <100.00%> (ø)
studio/src/common/styles/table-styles.css.js 100.00% <100.00%> (ø)
studio/src/common/utils/item-loading-browser.js 100.00% <100.00%> (ø)
studio/src/common/utils/item-loading.js 96.80% <100.00%> (+0.01%) ⬆️
studio/src/common/utils/render-utils.js 100.00% <100.00%> (ø)
...o/src/translation/mas-collapsible-table-row.css.js 100.00% <100.00%> (ø)
...tudio/src/translation/mas-collapsible-table-row.js 93.31% <100.00%> (+5.33%) ⬆️
studio/src/translation/mas-translation.css.js 100.00% <100.00%> (ø)
...o/src/translation/translation-common-styles.css.js 100.00% <100.00%> (ø)
studio/src/common/utils/items-loader.js 95.15% <91.66%> (-0.85%) ⬇️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd61e97...6013944. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

mirafedas and others added 4 commits April 20, 2026 13:22
…tion references

Adds a new Adobe I/O Runtime action that scans all non-en_US fragments and removes
variation references that are invalid — either wrong language or out-of-region — using
cursor-based folder listing and PUT for the variations field (required due to live relationships).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…try handling

- 21 tests covering getValidVariationsLocales, dryRun detection, live PUT writes,
  429 retry backoff, 404 skip, folder listing errors, and scope filtering
- Reduce batch concurrency from 10 to 3 to avoid rate limiting
- Add exponential backoff retry (up to 3x) on 429 responses for both folder
  listing and individual fragment fetches

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ove localeFromPath to common

- Extract 315-line inlined locale data to io/studio/src/locales.json (importable by CJS and ESM)
- Move localeFromPath and export PATH_TOKENS from common.js (removes duplicate regex)
- Fix Prettier violations in index.test.js and cleanup-variations/index.js

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mirafedas mirafedas requested a review from Axelcureno May 1, 2026 14:39
Copy link
Copy Markdown
Member

@Axelcureno Axelcureno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both blockers resolved (SSRF + PATH_TOKENS). The console.warn is minor — ship it.

Copy link
Copy Markdown
Contributor

@npeltier npeltier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry Myra, but we shouldn't add io changes (esp. of that magnitude) together with other changes. Can you eventually track what looks like an improvement in a separate ticket, and leave that one with only UI changes?

mirafedas and others added 2 commits May 12, 2026 12:14
loadOfferData had no fallbackWcsOsi support, and three callers passed
the signal as the options object (broken signature), making the parent
OSI fallback silently dead. Grouped variations have no osi field of
their own — they need to fall back to the parent card's OSI to resolve
offer data.

- Add fallbackWcsOsi option to loadOfferData
- Fix loadGroupedVariations / loadCardVariations / fetchVariationByPath
  to look up parent card OSI and pass it as fallback
- Fix loadOfferDataForViewOnlyCard broken call signatures
- Remove dead enrichGroupedVariationsWithOffers (never called, also broken)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants